package com.db.ionio.nio;


/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class NIOClientApp {
    public static void main(String[] args) {
        if (args.length < 3) {
            System.out.format("Usage: %s <host> <port> <file>%n", NIOClientApp.class.getName());
            System.exit(1);
        }

        String hostName = args[0];
        int port = Integer.parseInt(args[1]);
        String fileName = args[2];
        FileNIOClient client = new FileNIOClient(hostName, port, fileName);
        client.start();
    }
}
